home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Demos / A.D. Software / OOFILE 1.3b4d6.sit / OOFILE 1.3b4d6 / MacCodeWarriorDemo1.3b4d6 / docs / samples / ooftst30.cpp < prev    next >
MacBinary  |  1997-04-02  |  7.0 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Wed Apr 2 17:33:25 1997, modified Wed Apr 2 17:33:25 1997, creator 'CWIE', type ASCII, 6438 bytes "ooftst30.cpp" , at 0x19a6 442 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 6f 6f 66 74 73 74 | 33 30 2e 63 70 70 00 00 |..ooftst|30.cpp..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 19 26 00 | 00 01 ba af 68 8f 35 af |......&.|....h.5.|
|00000060| 68 8f 35 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |h.5.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 9c d3 00 00 |........|........|
|00000080| 2f 2f 20 43 6f 70 79 72 | 69 67 68 74 20 31 39 39 |// Copyr|ight 199|
|00000090| 36 20 41 2e 44 2e 20 53 | 6f 66 74 77 61 72 65 2e |6 A.D. S|oftware.|
|000000a0| 20 41 6c 6c 20 52 69 67 | 68 74 73 20 52 65 73 65 | All Rig|hts Rese|
|000000b0| 72 76 65 64 0d 0d 2f 2f | 20 4f 4f 46 54 45 53 54 |rved..//| OOFTEST|
|000000c0| 33 30 0d 0d 2f 2f 20 53 | 69 6d 70 6c 65 20 73 74 |30..// S|imple st|
|000000d0| 72 65 61 6d 20 49 2f 4f | 20 69 73 20 75 73 65 64 |ream I/O| is used|
|000000e0| 20 74 6f 20 69 6e 74 65 | 72 61 63 74 20 77 69 74 | to inte|ract wit|
|000000f0| 68 20 74 68 65 20 75 73 | 65 72 2e 0d 2f 2f 20 74 |h the us|er..// t|
|00000100| 6f 20 64 65 6d 6f 6e 73 | 74 72 61 74 65 20 74 68 |o demons|trate th|
|00000110| 65 20 75 73 65 20 6f 66 | 20 61 6c 6c 20 73 74 61 |e use of| all sta|
|00000120| 6e 64 61 6c 6f 6e 65 20 | 66 69 65 6c 64 20 74 79 |ndalone |field ty|
|00000130| 70 65 73 0d 0d 2f 2f 20 | 73 65 65 20 61 6c 73 6f |pes..// |see also|
|00000140| 20 6f 6f 66 74 73 74 30 | 35 20 66 6f 72 20 61 20 | ooftst0|5 for a |
|00000150| 77 69 64 65 20 76 61 72 | 69 65 74 79 20 6f 66 20 |wide var|iety of |
|00000160| 64 61 74 65 20 69 6e 70 | 75 74 20 74 65 73 74 73 |date inp|ut tests|
|00000170| 0d 0d 23 69 6e 63 6c 75 | 64 65 20 22 6f 6f 66 69 |..#inclu|de "oofi|
|00000180| 6c 65 2e 68 22 0d 0d 69 | 6e 74 20 0d 6d 61 69 6e |le.h"..i|nt .main|
|00000190| 28 29 0d 7b 0d 09 63 6f | 75 74 20 3c 3c 20 22 4f |().{..co|ut << "O|
|000001a0| 4f 46 49 4c 45 20 56 61 | 6c 69 64 61 74 69 6f 6e |OFILE Va|lidation|
|000001b0| 20 53 75 69 74 65 20 2d | 20 54 65 73 74 20 33 30 | Suite -| Test 30|
|000001c0| 5c 6e 22 0d 09 09 20 3c | 3c 20 22 53 69 6d 70 6c |\n"... <|< "Simpl|
|000001d0| 65 20 74 65 73 74 20 74 | 6f 20 6f 70 65 72 61 74 |e test t|o operat|
|000001e0| 69 6f 6e 73 20 6f 6e 20 | 61 6c 6c 20 74 68 65 20 |ions on |all the |
|000001f0| 73 74 61 6e 64 61 6c 6f | 6e 65 20 66 69 65 6c 64 |standalo|ne field|
|00000200| 20 74 79 70 65 73 22 0d | 09 09 20 3c 3c 20 65 6e | types".|.. << en|
|00000210| 64 6c 20 3c 3c 20 65 6e | 64 6c 3b 0d 0d 09 63 6f |dl << en|dl;...co|
|00000220| 75 74 20 3c 3c 20 22 63 | 68 61 6e 67 65 20 74 68 |ut << "c|hange th|
|00000230| 65 20 64 65 66 61 75 6c | 74 20 64 61 74 65 20 6f |e defaul|t date o|
|00000240| 72 64 65 72 20 74 6f 20 | 4d 6f 6e 74 68 2c 20 44 |rder to |Month, D|
|00000250| 61 79 20 59 65 61 72 22 | 20 3c 3c 20 65 6e 64 6c |ay Year"| << endl|
|00000260| 3b 0d 0d 09 64 62 44 61 | 74 65 3a 3a 73 44 65 66 |;...dbDa|te::sDef|
|00000270| 61 75 6c 74 44 61 74 65 | 4f 72 64 65 72 3d 64 62 |aultDate|Order=db|
|00000280| 44 61 74 65 3a 3a 6f 72 | 64 65 72 4d 44 59 3b 0d |Date::or|derMDY;.|
|00000290| 0d 09 7b 0d 2f 2f 20 64 | 61 74 65 20 63 74 6f 72 |..{.// d|ate ctor|
|000002a0| 73 0d 09 6f 6f 66 44 61 | 74 65 20 66 69 72 73 74 |s..oofDa|te first|
|000002b0| 3b 0d 09 66 69 72 73 74 | 20 3d 20 64 62 44 61 74 |;..first| = dbDat|
|000002c0| 65 3a 3a 63 75 72 72 65 | 6e 74 44 61 74 65 28 29 |e::curre|ntDate()|
|000002d0| 3b 0d 09 6f 6f 66 44 61 | 74 65 20 73 65 63 6f 6e |;..oofDa|te secon|
|000002e0| 64 20 3d 20 66 69 72 73 | 74 3b 0d 09 6f 6f 66 44 |d = firs|t;..oofD|
|000002f0| 61 74 65 20 74 68 69 72 | 64 28 22 4a 61 6e 20 31 |ate thir|d("Jan 1|
|00000300| 35 74 68 20 27 39 37 22 | 29 3b 0d 2f 2f 20 64 61 |5th '97"|);.// da|
|00000310| 74 65 20 6f 70 73 0d 09 | 73 65 63 6f 6e 64 20 2d |te ops..|second -|
|00000320| 3d 20 31 34 3b 0d 09 2b | 2b 74 68 69 72 64 3b 0d |= 14;..+|+third;.|
|00000330| 09 0d 09 63 6f 75 74 20 | 3c 3c 20 22 5c 6e 54 65 |...cout |<< "\nTe|
|00000340| 73 74 69 6e 67 20 6f 6f | 66 44 61 74 65 3a 22 0d |sting oo|fDate:".|
|00000350| 09 09 20 3c 3c 20 22 5c | 6e 54 6f 64 61 79 3a 20 |.. << "\|nToday: |
|00000360| 22 20 3c 3c 20 66 69 72 | 73 74 20 0d 09 09 20 3c |" << fir|st ... <|
|00000370| 3c 20 22 5c 6e 54 77 6f | 20 77 65 65 6b 73 20 61 |< "\nTwo| weeks a|
|00000380| 67 6f 3a 20 22 20 3c 3c | 20 73 65 63 6f 6e 64 20 |go: " <<| second |
|00000390| 0d 09 09 20 3c 3c 20 22 | 5c 6e 4a 61 6e 20 31 36 |... << "|\nJan 16|
|000003a0| 74 68 20 27 39 37 20 22 | 20 3c 3c 20 74 68 69 72 |th '97 "| << thir|
|000003b0| 64 20 0d 09 09 20 3c 3c | 20 65 6e 64 6c 20 3c 3c |d ... <<| endl <<|
|000003c0| 20 65 6e 64 6c 3b 0d 09 | 7d 0d 09 0d 09 0d 09 7b | endl;..|}......{|
|000003d0| 0d 2f 2f 20 64 61 74 65 | 2d 74 69 6d 65 20 63 74 |.// date|-time ct|
|000003e0| 6f 72 73 0d 09 6f 6f 66 | 44 61 74 65 54 69 6d 65 |ors..oof|DateTime|
|000003f0| 20 66 69 72 73 74 3b 0d | 09 66 69 72 73 74 20 3d | first;.|.first =|
|00000400| 20 64 62 44 61 74 65 54 | 69 6d 65 3a 3a 63 75 72 | dbDateT|ime::cur|
|00000410| 72 65 6e 74 54 69 6d 65 | 28 29 3b 0d 09 6f 6f 66 |rentTime|();..oof|
|00000420| 44 61 74 65 54 69 6d 65 | 20 73 65 63 6f 6e 64 20 |DateTime| second |
|00000430| 3d 20 66 69 72 73 74 3b | 0d 09 6f 6f 66 44 61 74 |= first;|..oofDat|
|00000440| 65 54 69 6d 65 20 74 68 | 69 72 64 28 22 4a 61 6e |eTime th|ird("Jan|
|00000450| 20 31 35 74 68 20 27 39 | 37 20 33 3a 31 35 20 70 | 15th '9|7 3:15 p|
|00000460| 6d 22 29 3b 0d 2f 2f 20 | 64 61 74 65 20 6f 70 73 |m");.// |date ops|
|00000470| 0d 09 73 65 63 6f 6e 64 | 20 2d 3d 20 31 34 3b 0d |..second| -= 14;.|
|00000480| 09 2b 2b 74 68 69 72 64 | 3b 0d 09 0d 09 63 6f 75 |.++third|;....cou|
|00000490| 74 20 3c 3c 20 22 5c 6e | 54 65 73 74 69 6e 67 20 |t << "\n|Testing |
|000004a0| 6f 6f 66 44 61 74 65 54 | 69 6d 65 3a 22 0d 09 09 |oofDateT|ime:"...|
|000004b0| 20 3c 3c 20 22 5c 6e 54 | 6f 64 61 79 3a 20 22 20 | << "\nT|oday: " |
|000004c0| 3c 3c 20 66 69 72 73 74 | 20 0d 09 09 20 3c 3c 20 |<< first| ... << |
|000004d0| 22 5c 6e 54 77 6f 20 77 | 65 65 6b 73 20 61 67 6f |"\nTwo w|eeks ago|
|000004e0| 3a 20 22 20 3c 3c 20 73 | 65 63 6f 6e 64 20 0d 09 |: " << s|econd ..|
|000004f0| 09 20 3c 3c 20 22 5c 6e | 4a 61 6e 20 31 36 74 68 |. << "\n|Jan 16th|
|00000500| 20 27 39 37 20 33 3a 31 | 35 20 70 6d 20 22 20 3c | '97 3:1|5 pm " <|
|00000510| 3c 20 74 68 69 72 64 20 | 0d 09 09 20 3c 3c 20 65 |< third |... << e|
|00000520| 6e 64 6c 20 3c 3c 20 65 | 6e 64 6c 3b 0d 09 7d 0d |ndl << e|ndl;..}.|
|00000530| 09 0d 09 0d 09 7b 0d 2f | 2f 20 74 69 6d 65 20 63 |.....{./|/ time c|
|00000540| 74 6f 72 73 0d 09 6f 6f | 66 54 69 6d 65 20 66 69 |tors..oo|fTime fi|
|00000550| 72 73 74 3b 0d 09 66 69 | 72 73 74 20 3d 20 64 62 |rst;..fi|rst = db|
|00000560| 54 69 6d 65 3a 3a 63 75 | 72 72 65 6e 74 54 69 6d |Time::cu|rrentTim|
|00000570| 65 28 29 3b 0d 09 6f 6f | 66 54 69 6d 65 20 73 65 |e();..oo|fTime se|
|00000580| 63 6f 6e 64 20 3d 20 66 | 69 72 73 74 3b 0d 09 6f |cond = f|irst;..o|
|00000590| 6f 66 54 69 6d 65 20 74 | 68 69 72 64 28 22 33 3a |ofTime t|hird("3:|
|000005a0| 31 35 3a 34 35 2e 33 32 | 20 70 6d 22 29 3b 0d 2f |15:45.32| pm");./|
|000005b0| 2f 20 74 69 6d 65 20 6f | 70 73 0d 09 73 65 63 6f |/ time o|ps..seco|
|000005c0| 6e 64 20 2d 3d 20 33 30 | 30 30 3b 20 20 2f 2f 20 |nd -= 30|00; // |
|000005d0| 6d 69 6c 6c 69 73 65 63 | 6f 6e 64 73 0d 09 2b 2b |millisec|onds..++|
|000005e0| 74 68 69 72 64 3b 0d 09 | 0d 09 63 6f 75 74 20 3c |third;..|..cout <|
|000005f0| 3c 20 22 5c 6e 54 65 73 | 74 69 6e 67 20 6f 6f 66 |< "\nTes|ting oof|
|00000600| 54 69 6d 65 3a 22 0d 09 | 09 20 3c 3c 20 22 5c 6e |Time:"..|. << "\n|
|00000610| 4e 6f 77 3a 20 22 20 3c | 3c 20 66 69 72 73 74 20 |Now: " <|< first |
|00000620| 0d 09 09 20 3c 3c 20 22 | 5c 6e 33 30 30 30 20 6d |... << "|\n3000 m|
|00000630| 69 6c 6c 69 73 65 63 6f | 6e 64 73 20 28 33 20 73 |illiseco|nds (3 s|
|00000640| 65 63 6f 6e 64 73 29 20 | 65 61 72 6c 69 65 72 3a |econds) |earlier:|
|00000650| 20 22 20 3c 3c 20 73 65 | 63 6f 6e 64 20 0d 09 09 | " << se|cond ...|
|00000660| 20 3c 3c 20 22 5c 6e 33 | 3a 31 35 3a 34 35 2e 33 | << "\n3|:15:45.3|
|00000670| 32 20 70 6d 20 22 20 3c | 3c 20 74 68 69 72 64 20 |2 pm " <|< third |
|00000680| 0d 09 09 20 3c 3c 20 65 | 6e 64 6c 20 3c 3c 20 65 |... << e|ndl << e|
|00000690| 6e 64 6c 3b 0d 09 7d 0d | 09 0d 09 0d 09 7b 0d 2f |ndl;..}.|.....{./|
|000006a0| 2f 20 74 65 78 74 20 63 | 74 6f 72 73 0d 09 6f 6f |/ text c|tors..oo|
|000006b0| 66 54 65 78 74 20 66 69 | 72 73 74 3b 20 2f 2f 20 |fText fi|rst; // |
|000006c0| 6c 65 6e 67 74 68 20 64 | 65 66 61 75 6c 74 73 20 |length d|efaults |
|000006d0| 74 6f 20 38 30 0d 09 66 | 69 72 73 74 20 3d 20 22 |to 80..f|irst = "|
|000006e0| 48 69 20 54 68 65 72 65 | 22 3b 0d 09 6f 6f 66 54 |Hi There|";..oofT|
|000006f0| 65 78 74 20 73 65 63 6f | 6e 64 20 3d 20 66 69 72 |ext seco|nd = fir|
|00000700| 73 74 3b 0d 09 6f 6f 66 | 54 65 78 74 20 74 68 69 |st;..oof|Text thi|
|00000710| 72 64 28 22 4a 61 6e 20 | 31 35 74 68 20 27 39 37 |rd("Jan |15th '97|
|00000720| 22 29 3b 0d 09 6f 6f 66 | 54 65 78 74 20 66 6f 75 |");..oof|Text fou|
|00000730| 72 74 68 3b 09 2f 2f 20 | 74 65 73 74 20 61 70 70 |rth;.// |test app|
|00000740| 65 6e 64 20 74 6f 20 65 | 6d 70 74 79 0d 2f 2f 20 |end to e|mpty.// |
|00000750| 74 65 78 74 20 6f 70 73 | 0d 09 73 65 63 6f 6e 64 |text ops|..second|
|00000760| 20 2b 3d 20 27 20 27 3b | 09 2f 2f 20 61 70 70 65 | += ' ';|.// appe|
|00000770| 6e 64 20 63 68 61 72 2c | 20 6e 6f 74 20 73 74 72 |nd char,| not str|
|00000780| 69 6e 67 0d 09 73 65 63 | 6f 6e 64 20 2b 3d 20 22 |ing..sec|ond += "|
|00000790| 41 6e 64 79 22 3b 0d 09 | 73 65 63 6f 6e 64 20 2b |Andy";..|second +|
|000007a0| 3d 20 22 22 3b 09 2f 2f | 20 74 65 73 74 20 70 61 |= "";.//| test pa|
|000007b0| 74 68 6f 6c 6f 67 69 63 | 61 6c 20 63 61 73 65 20 |thologic|al case |
|000007c0| 2d 20 61 70 70 65 6e 64 | 20 61 6e 20 65 6d 70 74 |- append| an empt|
|000007d0| 79 20 73 74 72 69 6e 67 | 09 0d 09 66 6f 75 72 74 |y string|...fourt|
|000007e0| 68 20 2b 3d 20 22 61 70 | 70 65 6e 64 65 64 20 74 |h += "ap|pended t|
|000007f0| 6f 20 65 6d 70 74 79 22 | 3b 0d 09 0d 09 63 6f 75 |o empty"|;....cou|
|00000800| 74 20 3c 3c 20 22 5c 6e | 54 65 73 74 69 6e 67 20 |t << "\n|Testing |
|00000810| 6f 6f 66 54 65 78 74 3a | 22 0d 09 09 20 3c 3c 20 |oofText:|"... << |
|00000820| 22 5c 6e 27 48 69 20 54 | 68 65 72 65 27 20 22 20 |"\n'Hi T|here' " |
|00000830| 3c 3c 20 66 69 72 73 74 | 20 0d 09 09 20 3c 3c 20 |<< first| ... << |
|00000840| 22 5c 6e 27 48 69 20 54 | 68 65 72 65 20 41 6e 64 |"\n'Hi T|here And|
|00000850| 79 27 20 22 20 3c 3c 20 | 73 65 63 6f 6e 64 20 0d |y' " << |second .|
|00000860| 09 09 20 3c 3c 20 22 5c | 6e 27 4a 61 6e 20 31 35 |.. << "\|n'Jan 15|
|00000870| 74 68 20 27 39 37 27 20 | 22 20 3c 3c 20 74 68 69 |th '97' |" << thi|
|00000880| 72 64 20 0d 09 09 20 3c | 3c 20 22 5c 6e 27 61 70 |rd ... <|< "\n'ap|
|00000890| 70 65 6e 64 65 64 20 74 | 6f 20 65 6d 70 74 79 27 |pended t|o empty'|
|000008a0| 20 22 20 3c 3c 20 66 6f | 75 72 74 68 20 0d 09 09 | " << fo|urth ...|
|000008b0| 20 3c 3c 20 65 6e 64 6c | 20 3c 3c 20 65 6e 64 6c | << endl| << endl|
|000008c0| 3b 0d 09 7d 0d 0d 09 0d | 09 7b 0d 2f 2f 20 73 74 |;..}....|.{.// st|
|000008d0| 72 69 6e 67 20 63 74 6f | 72 73 20 2d 20 6f 75 72 |ring cto|rs - our|
|000008e0| 20 73 69 6d 70 6c 65 20 | 73 74 72 69 6e 67 20 74 | simple |string t|
|000008f0| 79 70 65 2c 20 4e 4f 54 | 20 61 20 64 61 74 61 62 |ype, NOT| a datab|
|00000900| 61 73 65 20 74 79 70 65 | 0d 09 4f 4f 46 5f 53 74 |ase type|..OOF_St|
|00000910| 72 69 6e 67 20 66 69 72 | 73 74 3b 20 0d 09 66 69 |ring fir|st; ..fi|
|00000920| 72 73 74 20 3d 20 22 48 | 69 20 54 68 65 72 65 22 |rst = "H|i There"|
|00000930| 3b 0d 09 4f 4f 46 5f 53 | 74 72 69 6e 67 20 73 65 |;..OOF_S|tring se|
|00000940| 63 6f 6e 64 20 3d 20 66 | 69 72 73 74 3b 0d 09 4f |cond = f|irst;..O|
|00000950| 4f 46 5f 53 74 72 69 6e | 67 20 74 68 69 72 64 28 |OF_Strin|g third(|
|00000960| 22 4a 61 6e 20 31 35 74 | 68 20 27 39 37 22 29 3b |"Jan 15t|h '97");|
|00000970| 0d 09 4f 4f 46 5f 53 74 | 72 69 6e 67 20 66 6f 75 |..OOF_St|ring fou|
|00000980| 72 74 68 3b 09 2f 2f 20 | 74 65 73 74 20 61 70 70 |rth;.// |test app|
|00000990| 65 6e 64 20 74 6f 20 65 | 6d 70 74 79 0d 09 4f 4f |end to e|mpty..OO|
|000009a0| 46 5f 53 74 72 69 6e 67 | 20 66 69 66 74 68 2c 20 |F_String| fifth, |
|000009b0| 73 69 78 74 68 2c 20 73 | 65 76 65 6e 74 68 3b 0d |sixth, s|eventh;.|
|000009c0| 2f 2f 20 63 68 61 72 20 | 6f 70 73 0d 09 73 65 63 |// char |ops..sec|
|000009d0| 6f 6e 64 20 2b 3d 20 27 | 20 27 3b 09 2f 2f 20 61 |ond += '| ';.// a|
|000009e0| 70 70 65 6e 64 20 63 68 | 61 72 2c 20 6e 6f 74 20 |ppend ch|ar, not |
|000009f0| 73 74 72 69 6e 67 0d 09 | 73 65 63 6f 6e 64 20 2b |string..|second +|
|00000a00| 3d 20 22 41 6e 64 79 22 | 3b 0d 09 73 65 63 6f 6e |= "Andy"|;..secon|
|00000a10| 64 20 2b 3d 20 22 22 3b | 09 2f 2f 20 74 65 73 74 |d += "";|.// test|
|00000a20| 20 70 61 74 68 6f 6c 6f | 67 69 63 61 6c 20 63 61 | patholo|gical ca|
|00000a30| 73 65 20 2d 20 61 70 70 | 65 6e 64 20 61 6e 20 65 |se - app|end an e|
|00000a40| 6d 70 74 79 20 73 74 72 | 69 6e 67 0d 09 66 6f 75 |mpty str|ing..fou|
|00000a50| 72 74 68 20 2b 3d 20 22 | 61 70 70 65 6e 64 65 64 |rth += "|appended|
|00000a60| 20 74 6f 20 65 6d 70 74 | 79 22 3b 0d 09 66 69 66 | to empt|y";..fif|
|00000a70| 74 68 2e 63 6f 6e 76 65 | 72 74 4e 75 6d 62 65 72 |th.conve|rtNumber|
|00000a80| 28 31 32 33 34 35 29 3b | 0d 09 73 69 78 74 68 2e |(12345);|..sixth.|
|00000a90| 63 6f 6e 76 65 72 74 4e | 75 6d 62 65 72 28 31 32 |convertN|umber(12|
|00000aa0| 33 2e 34 35 36 29 3b 0d | 09 73 65 76 65 6e 74 68 |3.456);.|.seventh|
|00000ab0| 2e 63 6f 6e 76 65 72 74 | 4e 75 6d 62 65 72 28 31 |.convert|Number(1|
|00000ac0| 32 33 34 35 36 2c 20 22 | 70 72 69 6e 74 66 20 74 |23456, "|printf t|
|00000ad0| 65 73 74 3a 20 25 64 22 | 29 3b 0d 09 63 6f 75 74 |est: %d"|);..cout|
|00000ae0| 20 3c 3c 20 22 5c 6e 54 | 65 73 74 69 6e 67 20 4f | << "\nT|esting O|
|00000af0| 4f 46 5f 53 74 72 69 6e | 67 20 73 69 6d 70 6c 65 |OF_Strin|g simple|
|00000b00| 20 73 74 72 69 6e 67 20 | 63 6c 61 73 73 3a 22 0d | string |class:".|
|00000b10| 09 09 20 3c 3c 20 22 5c | 6e 27 48 69 20 54 68 65 |.. << "\|n'Hi The|
|00000b20| 72 65 27 20 22 20 3c 3c | 20 66 69 72 73 74 20 0d |re' " <<| first .|
|00000b30| 09 09 20 3c 3c 20 22 5c | 6e 27 48 69 20 54 68 65 |.. << "\|n'Hi The|
|00000b40| 72 65 20 41 6e 64 79 27 | 20 22 20 3c 3c 20 73 65 |re Andy'| " << se|
|00000b50| 63 6f 6e 64 20 0d 09 09 | 20 3c 3c 20 22 5c 6e 27 |cond ...| << "\n'|
|00000b60| 4a 61 6e 20 31 35 74 68 | 20 27 39 37 27 20 22 20 |Jan 15th| '97' " |
|00000b70| 3c 3c 20 74 68 69 72 64 | 20 0d 09 09 20 3c 3c 20 |<< third| ... << |
|00000b80| 22 5c 6e 27 61 70 70 65 | 6e 64 65 64 20 74 6f 20 |"\n'appe|nded to |
|00000b90| 65 6d 70 74 79 27 20 22 | 20 3c 3c 20 66 6f 75 72 |empty' "| << four|
|00000ba0| 74 68 20 0d 09 09 20 3c | 3c 20 22 5c 6e 27 31 32 |th ... <|< "\n'12|
|00000bb0| 33 34 35 36 27 20 22 20 | 3c 3c 20 66 69 66 74 68 |3456' " |<< fifth|
|00000bc0| 20 0d 09 09 20 3c 3c 20 | 22 5c 6e 27 31 32 33 2e | ... << |"\n'123.|
|00000bd0| 34 35 36 27 20 22 20 3c | 3c 20 73 69 78 74 68 20 |456' " <|< sixth |
|00000be0| 0d 09 09 20 3c 3c 20 22 | 5c 6e 27 70 72 69 6e 74 |... << "|\n'print|
|00000bf0| 66 20 74 65 73 74 3a 20 | 31 32 33 34 35 36 27 20 |f test: |123456' |
|00000c00| 22 20 3c 3c 20 73 65 76 | 65 6e 74 68 20 0d 09 09 |" << sev|enth ...|
|00000c10| 20 3c 3c 20 65 6e 64 6c | 20 3c 3c 20 65 6e 64 6c | << endl| << endl|
|00000c20| 3b 0d 09 7d 0d 09 0d 09 | 0d 09 7b 0d 2f 2f 20 63 |;..}....|..{.// c|
|00000c30| 68 61 72 20 63 74 6f 72 | 73 0d 09 6f 6f 66 43 68 |har ctor|s..oofCh|
|00000c40| 61 72 20 66 69 72 73 74 | 3b 20 2f 2f 20 6c 65 6e |ar first|; // len|
|00000c50| 67 74 68 20 64 65 66 61 | 75 6c 74 73 20 74 6f 20 |gth defa|ults to |
|00000c60| 38 30 0d 09 66 69 72 73 | 74 20 3d 20 22 48 69 20 |80..firs|t = "Hi |
|00000c70| 54 68 65 72 65 22 3b 0d | 09 6f 6f 66 43 68 61 72 |There";.|.oofChar|
|00000c80| 20 73 65 63 6f 6e 64 20 | 3d 20 66 69 72 73 74 3b | second |= first;|
|00000c90| 0d 09 6f 6f 66 43 68 61 | 72 20 74 68 69 72 64 28 |..oofCha|r third(|
|00000ca0| 22 4a 61 6e 20 31 35 74 | 68 20 27 39 37 22 29 3b |"Jan 15t|h '97");|
|00000cb0| 0d 09 6f 6f 66 43 68 61 | 72 20 66 6f 75 72 74 68 |..oofCha|r fourth|
|00000cc0| 3b 09 2f 2f 20 74 65 73 | 74 20 61 70 70 65 6e 64 |;.// tes|t append|
|00000cd0| 20 74 6f 20 65 6d 70 74 | 79 0d 2f 2f 20 63 68 61 | to empt|y.// cha|
|00000ce0| 72 20 6f 70 73 0d 09 73 | 65 63 6f 6e 64 20 2b 3d |r ops..s|econd +=|
|00000cf0| 20 27 20 27 3b 09 2f 2f | 20 61 70 70 65 6e 64 20 | ' ';.//| append |
|00000d00| 63 68 61 72 2c 20 6e 6f | 74 20 73 74 72 69 6e 67 |char, no|t string|
|00000d10| 0d 09 73 65 63 6f 6e 64 | 20 2b 3d 20 22 41 6e 64 |..second| += "And|
|00000d20| 79 22 3b 0d 09 73 65 63 | 6f 6e 64 20 2b 3d 20 22 |y";..sec|ond += "|
|00000d30| 22 3b 09 2f 2f 20 74 65 | 73 74 20 70 61 74 68 6f |";.// te|st patho|
|00000d40| 6c 6f 67 69 63 61 6c 20 | 63 61 73 65 20 2d 20 61 |logical |case - a|
|00000d50| 70 70 65 6e 64 20 61 6e | 20 65 6d 70 74 79 20 73 |ppend an| empty s|
|00000d60| 74 72 69 6e 67 0d 09 66 | 6f 75 72 74 68 20 2b 3d |tring..f|ourth +=|
|00000d70| 20 22 61 70 70 65 6e 64 | 65 64 20 74 6f 20 65 6d | "append|ed to em|
|00000d80| 70 74 79 22 3b 0d 09 0d | 09 63 6f 75 74 20 3c 3c |pty";...|.cout <<|
|00000d90| 20 22 5c 6e 54 65 73 74 | 69 6e 67 20 6f 6f 66 43 | "\nTest|ing oofC|
|00000da0| 68 61 72 3a 22 0d 09 09 | 20 3c 3c 20 22 5c 6e 27 |har:"...| << "\n'|
|00000db0| 48 69 20 54 68 65 72 65 | 27 20 22 20 3c 3c 20 66 |Hi There|' " << f|
|00000dc0| 69 72 73 74 20 0d 09 09 | 20 3c 3c 20 22 5c 6e 27 |irst ...| << "\n'|
|00000dd0| 48 69 20 54 68 65 72 65 | 20 41 6e 64 79 27 20 22 |Hi There| Andy' "|
|00000de0| 20 3c 3c 20 73 65 63 6f | 6e 64 20 0d 09 09 20 3c | << seco|nd ... <|
|00000df0| 3c 20 22 5c 6e 27 4a 61 | 6e 20 31 35 74 68 20 27 |< "\n'Ja|n 15th '|
|00000e00| 39 37 27 20 22 20 3c 3c | 20 74 68 69 72 64 20 0d |97' " <<| third .|
|00000e10| 09 09 20 3c 3c 20 22 5c | 6e 27 61 70 70 65 6e 64 |.. << "\|n'append|
|00000e20| 65 64 20 74 6f 20 65 6d | 70 74 79 27 20 22 20 3c |ed to em|pty' " <|
|00000e30| 3c 20 66 6f 75 72 74 68 | 20 0d 09 09 20 3c 3c 20 |< fourth| ... << |
|00000e40| 65 6e 64 6c 20 3c 3c 20 | 65 6e 64 6c 3b 0d 09 7d |endl << |endl;..}|
|00000e50| 0d 09 0d 09 0d 09 7b 0d | 2f 2f 20 75 6e 73 69 67 |......{.|// unsig|
|00000e60| 6e 65 64 20 73 68 6f 72 | 74 20 63 74 6f 72 73 0d |ned shor|t ctors.|
|00000e70| 09 6f 6f 66 55 73 68 6f | 72 74 20 66 69 72 73 74 |.oofUsho|rt first|
|00000e80| 3b 20 0d 09 66 69 72 73 | 74 20 3d 20 39 39 3b 0d |; ..firs|t = 99;.|
|00000e90| 09 6f 6f 66 55 73 68 6f | 72 74 20 73 65 63 6f 6e |.oofUsho|rt secon|
|00000ea0| 64 20 3d 20 66 69 72 73 | 74 3b 0d 09 6f 6f 66 55 |d = firs|t;..oofU|
|00000eb0| 73 68 6f 72 74 20 74 68 | 69 72 64 28 31 30 30 31 |short th|ird(1001|
|00000ec0| 29 3b 0d 2f 2f 20 75 6e | 73 69 67 6e 65 64 20 73 |);.// un|signed s|
|00000ed0| 68 6f 72 74 20 6f 70 73 | 0d 09 73 65 63 6f 6e 64 |hort ops|..second|
|00000ee0| 20 20 3d 20 73 65 63 6f | 6e 64 20 2b 20 32 3b 20 | = seco|nd + 2; |
|00000ef0| 2f 2f 2b 3d 20 32 3b 09 | 2f 2f 20 6c 61 74 65 72 |//+= 2;.|// later|
|00000f00| 0d 09 0d 09 63 6f 75 74 | 20 3c 3c 20 22 5c 6e 54 |....cout| << "\nT|
|00000f10| 65 73 74 69 6e 67 20 6f | 6f 66 55 73 68 6f 72 74 |esting o|ofUshort|
|00000f20| 3a 22 0d 09 09 20 3c 3c | 20 22 5c 6e 27 39 39 27 |:"... <<| "\n'99'|
|00000f30| 20 22 20 3c 3c 20 66 69 | 72 73 74 20 0d 09 09 20 | " << fi|rst ... |
|00000f40| 3c 3c 20 22 5c 6e 27 31 | 30 31 27 20 22 20 3c 3c |<< "\n'1|01' " <<|
|00000f50| 20 73 65 63 6f 6e 64 20 | 0d 09 09 20 3c 3c 20 22 | second |... << "|
|00000f60| 5c 6e 27 31 30 30 31 27 | 20 22 20 3c 3c 20 74 68 |\n'1001'| " << th|
|00000f70| 69 72 64 20 0d 09 09 20 | 3c 3c 20 65 6e 64 6c 20 |ird ... |<< endl |
|00000f80| 3c 3c 20 65 6e 64 6c 3b | 0d 09 7d 0d 09 0d 09 0d |<< endl;|..}.....|
|00000f90| 09 7b 0d 2f 2f 20 73 68 | 6f 72 74 20 63 74 6f 72 |.{.// sh|ort ctor|
|00000fa0| 73 0d 09 6f 6f 66 53 68 | 6f 72 74 20 66 69 72 73 |s..oofSh|ort firs|
|00000fb0| 74 3b 20 0d 09 66 69 72 | 73 74 20 3d 20 2d 39 39 |t; ..fir|st = -99|
|00000fc0| 3b 0d 09 6f 6f 66 53 68 | 6f 72 74 20 73 65 63 6f |;..oofSh|ort seco|
|00000fd0| 6e 64 20 3d 20 66 69 72 | 73 74 3b 0d 09 6f 6f 66 |nd = fir|st;..oof|
|00000fe0| 53 68 6f 72 74 20 74 68 | 69 72 64 28 31 30 30 31 |Short th|ird(1001|
|00000ff0| 29 3b 0d 2f 2f 20 73 68 | 6f 72 74 20 6f 70 73 0d |);.// sh|ort ops.|
|00001000| 09 73 65 63 6f 6e 64 20 | 20 3d 20 73 65 63 6f 6e |.second | = secon|
|00001010| 64 20 2d 20 32 3b 20 2f | 2f 2d 3d 20 32 3b 09 2f |d - 2; /|/-= 2;./|
|00001020| 2f 20 6c 61 74 65 72 0d | 09 0d 09 63 6f 75 74 20 |/ later.|...cout |
|00001030| 3c 3c 20 22 5c 6e 54 65 | 73 74 69 6e 67 20 6f 6f |<< "\nTe|sting oo|
|00001040| 66 53 68 6f 72 74 3a 22 | 0d 09 09 20 3c 3c 20 22 |fShort:"|... << "|
|00001050| 5c 6e 27 2d 39 39 27 20 | 22 20 3c 3c 20 66 69 72 |\n'-99' |" << fir|
|00001060| 73 74 20 0d 09 09 20 3c | 3c 20 22 5c 6e 27 2d 31 |st ... <|< "\n'-1|
|00001070| 30 31 27 20 22 20 3c 3c | 20 73 65 63 6f 6e 64 20 |01' " <<| second |
|00001080| 0d 09 09 20 3c 3c 20 22 | 5c 6e 27 31 30 30 31 27 |... << "|\n'1001'|
|00001090| 20 22 20 3c 3c 20 74 68 | 69 72 64 20 0d 09 09 20 | " << th|ird ... |
|000010a0| 3c 3c 20 65 6e 64 6c 20 | 3c 3c 20 65 6e 64 6c 3b |<< endl |<< endl;|
|000010b0| 0d 09 7d 0d 09 0d 09 0d | 09 7b 0d 2f 2f 20 75 6e |..}.....|.{.// un|
|000010c0| 73 69 67 6e 65 64 20 6c | 6f 6e 67 20 63 74 6f 72 |signed l|ong ctor|
|000010d0| 73 0d 09 6f 6f 66 55 6c | 6f 6e 67 20 66 69 72 73 |s..oofUl|ong firs|
|000010e0| 74 3b 20 0d 09 66 69 72 | 73 74 20 3d 20 39 39 3b |t; ..fir|st = 99;|
|000010f0| 0d 09 6f 6f 66 55 6c 6f | 6e 67 20 73 65 63 6f 6e |..oofUlo|ng secon|
|00001100| 64 20 3d 20 66 69 72 73 | 74 3b 0d 09 6f 6f 66 55 |d = firs|t;..oofU|
|00001110| 6c 6f 6e 67 20 74 68 69 | 72 64 28 31 30 30 30 30 |long thi|rd(10000|
|00001120| 30 31 29 3b 0d 2f 2f 20 | 75 6e 73 69 67 6e 65 64 |01);.// |unsigned|
|00001130| 20 6c 6f 6e 67 20 6f 70 | 73 0d 09 73 65 63 6f 6e | long op|s..secon|
|00001140| 64 20 20 3d 20 73 65 63 | 6f 6e 64 20 2b 20 32 3b |d = sec|ond + 2;|
|00001150| 20 2f 2f 2b 3d 20 32 3b | 09 2f 2f 20 6c 61 74 65 | //+= 2;|.// late|
|00001160| 72 0d 09 0d 09 63 6f 75 | 74 20 3c 3c 20 22 5c 6e |r....cou|t << "\n|
|00001170| 54 65 73 74 69 6e 67 20 | 6f 6f 66 55 6c 6f 6e 67 |Testing |oofUlong|
|00001180| 3a 22 0d 09 09 20 3c 3c | 20 22 5c 6e 27 39 39 27 |:"... <<| "\n'99'|
|00001190| 20 22 20 3c 3c 20 66 69 | 72 73 74 20 0d 09 09 20 | " << fi|rst ... |
|000011a0| 3c 3c 20 22 5c 6e 27 31 | 30 31 27 20 22 20 3c 3c |<< "\n'1|01' " <<|
|000011b0| 20 73 65 63 6f 6e 64 20 | 0d 09 09 20 3c 3c 20 22 | second |... << "|
|000011c0| 5c 6e 27 31 30 30 30 30 | 30 31 27 20 22 20 3c 3c |\n'10000|01' " <<|
|000011d0| 20 74 68 69 72 64 20 0d | 09 09 20 3c 3c 20 65 6e | third .|.. << en|
|000011e0| 64 6c 20 3c 3c 20 65 6e | 64 6c 3b 0d 09 7d 0d 09 |dl << en|dl;..}..|
|000011f0| 0d 09 0d 09 7b 0d 2f 2f | 20 6c 6f 6e 67 20 63 74 |....{.//| long ct|
|00001200| 6f 72 73 0d 09 6f 6f 66 | 4c 6f 6e 67 20 66 69 72 |ors..oof|Long fir|
|00001210| 73 74 3b 20 0d 09 66 69 | 72 73 74 20 3d 20 2d 39 |st; ..fi|rst = -9|
|00001220| 39 3b 0d 09 6f 6f 66 4c | 6f 6e 67 20 73 65 63 6f |9;..oofL|ong seco|
|00001230| 6e 64 20 3d 20 66 69 72 | 73 74 3b 0d 09 6f 6f 66 |nd = fir|st;..oof|
|00001240| 4c 6f 6e 67 20 74 68 69 | 72 64 28 31 30 30 30 30 |Long thi|rd(10000|
|00001250| 30 31 29 3b 0d 2f 2f 20 | 6c 6f 6e 67 20 6f 70 73 |01);.// |long ops|
|00001260| 0d 09 73 65 63 6f 6e 64 | 20 20 3d 20 73 65 63 6f |..second| = seco|
|00001270| 6e 64 20 2d 20 32 3b 20 | 2f 2f 2b 3d 20 32 3b 09 |nd - 2; |//+= 2;.|
|00001280| 2f 2f 20 6c 61 74 65 72 | 0d 09 0d 09 63 6f 75 74 |// later|....cout|
|00001290| 20 3c 3c 20 22 5c 6e 54 | 65 73 74 69 6e 67 20 6f | << "\nT|esting o|
|000012a0| 6f 66 4c 6f 6e 67 3a 22 | 0d 09 09 20 3c 3c 20 22 |ofLong:"|... << "|
|000012b0| 5c 6e 27 2d 39 39 27 20 | 22 20 3c 3c 20 66 69 72 |\n'-99' |" << fir|
|000012c0| 73 74 20 0d 09 09 20 3c | 3c 20 22 5c 6e 27 2d 31 |st ... <|< "\n'-1|
|000012d0| 30 31 27 20 22 20 3c 3c | 20 73 65 63 6f 6e 64 20 |01' " <<| second |
|000012e0| 0d 09 09 20 3c 3c 20 22 | 5c 6e 27 31 30 30 30 30 |... << "|\n'10000|
|000012f0| 30 31 27 20 22 20 3c 3c | 20 74 68 69 72 64 20 0d |01' " <<| third .|
|00001300| 09 09 20 3c 3c 20 65 6e | 64 6c 20 3c 3c 20 65 6e |.. << en|dl << en|
|00001310| 64 6c 3b 0d 09 7d 0d 09 | 0d 09 0d 09 7b 0d 2f 2f |dl;..}..|....{.//|
|00001320| 20 62 6f 6f 6c 20 63 74 | 6f 72 73 0d 09 6f 6f 66 | bool ct|ors..oof|
|00001330| 42 6f 6f 6c 20 66 69 72 | 73 74 3b 20 0d 09 66 69 |Bool fir|st; ..fi|
|00001340| 72 73 74 20 3d 20 74 72 | 75 65 3b 0d 09 6f 6f 66 |rst = tr|ue;..oof|
|00001350| 42 6f 6f 6c 20 73 65 63 | 6f 6e 64 20 3d 20 66 69 |Bool sec|ond = fi|
|00001360| 72 73 74 3b 0d 09 6f 6f | 66 42 6f 6f 6c 20 74 68 |rst;..oo|fBool th|
|00001370| 69 72 64 28 22 54 72 75 | 65 22 29 3b 0d 09 6f 6f |ird("Tru|e");..oo|
|00001380| 66 42 6f 6f 6c 20 66 6f | 75 72 74 68 28 27 4e 27 |fBool fo|urth('N'|
|00001390| 29 3b 0d 09 6f 6f 66 42 | 6f 6f 6c 20 66 69 66 74 |);..oofB|ool fift|
|000013a0| 68 3b 0d 2f 2f 20 62 6f | 6f 6c 20 6f 70 73 0d 09 |h;.// bo|ol ops..|
|000013b0| 73 65 63 6f 6e 64 20 20 | 3d 20 21 73 65 63 6f 6e |second |= !secon|
|000013c0| 64 3b 0d 09 66 69 66 74 | 68 20 3d 20 27 54 27 3b |d;..fift|h = 'T';|
|000013d0| 09 0d 09 66 69 66 74 68 | 20 3d 20 30 3b 09 0d 09 |...fifth| = 0;...|
|000013e0| 66 69 66 74 68 20 3d 20 | 31 3b 0d 09 0d 09 63 6f |fifth = |1;....co|
|000013f0| 75 74 20 3c 3c 20 22 5c | 6e 54 65 73 74 69 6e 67 |ut << "\|nTesting|
|00001400| 20 6f 6f 66 42 6f 6f 6c | 3a 22 0d 09 09 20 3c 3c | oofBool|:"... <<|
|00001410| 20 22 5c 6e 27 54 27 20 | 22 20 3c 3c 20 66 69 72 | "\n'T' |" << fir|
|00001420| 73 74 20 0d 09 09 20 3c | 3c 20 22 5c 6e 27 46 27 |st ... <|< "\n'F'|
|00001430| 20 22 20 3c 3c 20 73 65 | 63 6f 6e 64 20 0d 09 09 | " << se|cond ...|
|00001440| 20 3c 3c 20 22 5c 6e 27 | 54 27 20 22 20 3c 3c 20 | << "\n'|T' " << |
|00001450| 74 68 69 72 64 20 0d 09 | 09 20 3c 3c 20 22 5c 6e |third ..|. << "\n|
|00001460| 27 46 27 20 22 20 3c 3c | 20 66 6f 75 72 74 68 20 |'F' " <<| fourth |
|00001470| 0d 09 09 20 3c 3c 20 22 | 5c 6e 27 54 27 20 22 20 |... << "|\n'T' " |
|00001480| 3c 3c 20 66 69 66 74 68 | 20 0d 09 09 20 3c 3c 20 |<< fifth| ... << |
|00001490| 65 6e 64 6c 20 3c 3c 20 | 65 6e 64 6c 3b 0d 09 7d |endl << |endl;..}|
|000014a0| 0d 09 0d 09 0d 09 7b 0d | 2f 2f 20 72 65 61 6c 20 |......{.|// real |
|000014b0| 63 74 6f 72 73 0d 09 6f | 6f 66 52 65 61 6c 20 66 |ctors..o|ofReal f|
|000014c0| 69 72 73 74 3b 20 0d 09 | 66 69 72 73 74 20 3d 20 |irst; ..|first = |
|000014d0| 2d 30 2e 39 39 3b 0d 09 | 6f 6f 66 52 65 61 6c 20 |-0.99;..|oofReal |
|000014e0| 73 65 63 6f 6e 64 20 3d | 20 66 69 72 73 74 3b 0d |second =| first;.|
|000014f0| 09 6f 6f 66 52 65 61 6c | 20 74 68 69 72 64 28 31 |.oofReal| third(1|
|00001500| 30 30 30 30 30 31 29 3b | 0d 2f 2f 20 72 65 61 6c |000001);|.// real|
|00001510| 20 6f 70 73 0d 09 73 65 | 63 6f 6e 64 20 20 3d 20 | ops..se|cond = |
|00001520| 73 65 63 6f 6e 64 20 2d | 20 30 2e 30 32 3b 20 2f |second -| 0.02; /|
|00001530| 2f 2d 3d 20 30 2e 30 32 | 3b 09 2f 2f 20 6c 61 74 |/-= 0.02|;.// lat|
|00001540| 65 72 0d 09 0d 09 63 6f | 75 74 20 3c 3c 20 22 5c |er....co|ut << "\|
|00001550| 6e 54 65 73 74 69 6e 67 | 20 6f 6f 66 52 65 61 6c |nTesting| oofReal|
|00001560| 3a 22 0d 09 09 20 3c 3c | 20 22 5c 6e 27 2d 30 2e |:"... <<| "\n'-0.|
|00001570| 39 39 27 20 22 20 3c 3c | 20 66 69 72 73 74 20 0d |99' " <<| first .|
|00001580| 09 09 20 3c 3c 20 22 5c | 6e 27 2d 31 2e 30 31 27 |.. << "\|n'-1.01'|
|00001590| 20 22 20 3c 3c 20 73 65 | 63 6f 6e 64 20 0d 09 09 | " << se|cond ...|
|000015a0| 20 3c 3c 20 22 5c 6e 27 | 31 30 30 30 30 30 31 27 | << "\n'|1000001'|
|000015b0| 20 22 20 3c 3c 20 74 68 | 69 72 64 20 0d 09 09 20 | " << th|ird ... |
|000015c0| 3c 3c 20 65 6e 64 6c 20 | 3c 3c 20 65 6e 64 6c 3b |<< endl |<< endl;|
|000015d0| 0d 09 7d 0d 09 0d 09 0d | 09 7b 0d 09 6c 6f 6e 67 |..}.....|.{..long|
|000015e0| 20 74 65 73 74 42 75 66 | 5b 5d 20 3d 20 7b 30 2c | testBuf|[] = {0,|
|000015f0| 20 32 2c 20 34 2c 20 38 | 2c 20 31 36 2c 20 36 35 | 2, 4, 8|, 16, 65|
|00001600| 35 33 35 2c 20 30 78 41 | 44 41 44 41 44 41 44 7d |535, 0xA|DADADAD}|
|00001610| 3b 0d 09 6c 6f 6e 67 20 | 62 75 66 4c 65 6e 20 3d |;..long |bufLen =|
|00001620| 20 73 69 7a 65 6f 66 28 | 74 65 73 74 42 75 66 29 | sizeof(|testBuf)|
|00001630| 3b 0d 09 6f 6f 66 42 4c | 4f 42 20 66 69 72 73 74 |;..oofBL|OB first|
|00001640| 3b 0d 09 66 69 72 73 74 | 2e 73 65 74 42 79 74 65 |;..first|.setByte|
|00001650| 73 28 74 65 73 74 42 75 | 66 2c 20 62 75 66 4c 65 |s(testBu|f, bufLe|
|00001660| 6e 29 3b 0d 09 6f 6f 66 | 42 4c 4f 42 20 73 65 63 |n);..oof|BLOB sec|
|00001670| 6f 6e 64 20 3d 20 66 69 | 72 73 74 3b 0d 09 6f 6f |ond = fi|rst;..oo|
|00001680| 66 42 4c 4f 42 20 74 68 | 69 72 64 3b 09 2f 2f 20 |fBLOB th|ird;.// |
|00001690| 74 65 73 74 20 61 70 70 | 65 6e 64 20 74 6f 20 65 |test app|end to e|
|000016a0| 6d 70 74 79 0d 2f 2f 20 | 62 6c 6f 62 20 6f 70 73 |mpty.// |blob ops|
|000016b0| 0d 09 73 65 63 6f 6e 64 | 20 2b 3d 20 66 69 72 73 |..second| += firs|
|000016c0| 74 3b 0d 09 74 68 69 72 | 64 2e 61 70 70 65 6e 64 |t;..thir|d.append|
|000016d0| 28 74 65 73 74 42 75 66 | 2c 20 62 75 66 4c 65 6e |(testBuf|, bufLen|
|000016e0| 29 3b 0d 09 0d 09 63 6f | 75 74 20 3c 3c 20 22 5c |);....co|ut << "\|
|000016f0| 6e 54 65 73 74 69 6e 67 | 20 6f 6f 66 42 4c 4f 42 |nTesting| oofBLOB|
|00001700| 3a 22 0d 09 09 20 3c 3c | 20 22 5c 6e 27 30 2c 20 |:"... <<| "\n'0, |
|00001710| 32 2c 20 34 2c 20 38 2c | 20 31 36 2c 20 36 35 35 |2, 4, 8,| 16, 655|
|00001720| 33 35 2c 20 30 78 41 44 | 41 44 41 44 41 44 27 5c |35, 0xAD|ADADAD'\|
|00001730| 6e 22 20 3c 3c 20 66 69 | 72 73 74 20 0d 09 09 20 |n" << fi|rst ... |
|00001740| 3c 3c 20 22 5c 6e 73 61 | 6d 65 20 61 73 20 61 62 |<< "\nsa|me as ab|
|00001750| 6f 76 65 2c 20 74 77 69 | 63 65 5c 6e 22 20 3c 3c |ove, twi|ce\n" <<|
|00001760| 20 73 65 63 6f 6e 64 20 | 0d 09 09 20 3c 3c 20 22 | second |... << "|
|00001770| 5c 6e 73 61 6d 65 20 61 | 73 20 66 69 72 73 74 5c |\nsame a|s first\|
|00001780| 6e 22 20 3c 3c 20 74 68 | 69 72 64 20 0d 09 09 20 |n" << th|ird ... |
|00001790| 3c 3c 20 65 6e 64 6c 20 | 3c 3c 20 65 6e 64 6c 3b |<< endl |<< endl;|
|000017a0| 0d 09 7d 0d 09 0d 2f 2f | 2a 2a 2a 2a 2a 2a 2a 2a |..}...//|********|
|000017b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000017c0| 0d 2f 2f 20 64 65 6d 6f | 6e 73 74 72 61 74 65 20 |.// demo|nstrate |
|000017d0| 75 73 69 6e 67 20 73 74 | 61 6e 64 61 6c 6f 6e 65 |using st|andalone|
|000017e0| 20 66 69 65 6c 64 73 20 | 69 6e 20 61 20 64 62 56 | fields |in a dbV|
|000017f0| 69 65 77 0d 2f 2f 20 77 | 68 69 63 68 20 74 65 63 |iew.// w|hich tec|
|00001800| 68 6e 69 71 75 65 20 69 | 73 20 6d 61 69 6e 6c 79 |hnique i|s mainly|
|00001810| 20 75 73 65 64 20 66 6f | 72 20 72 65 70 6f 72 74 | used fo|r report|
|00001820| 2d 77 72 69 74 65 72 73 | 0d 0d 2f 2f 20 4e 6f 74 |-writers|..// Not|
|00001830| 65 20 74 68 65 20 75 73 | 65 20 6f 66 20 65 69 74 |e the us|e of eit|
|00001840| 68 65 72 20 61 20 70 6f | 69 6e 74 65 72 20 6f 72 |her a po|inter or|
|00001850| 20 74 65 6d 70 6f 72 61 | 72 79 20 6f 62 6a 65 63 | tempora|ry objec|
|00001860| 74 2e 0d 2f 2f 20 54 68 | 65 20 70 6f 69 6e 74 65 |t..// Th|e pointe|
|00001870| 72 20 77 69 6c 6c 20 62 | 65 20 61 64 6f 70 74 65 |r will b|e adopte|
|00001880| 64 20 62 79 20 74 68 65 | 20 76 69 65 77 2c 20 61 |d by the| view, a|
|00001890| 6e 64 20 74 68 65 20 74 | 65 6d 70 6f 72 61 72 79 |nd the t|emporary|
|000018a0| 20 63 6f 70 69 65 64 0d | 09 64 62 56 69 65 77 20 | copied.|.dbView |
|000018b0| 20 6a 75 73 74 4f 6e 65 | 4c 6f 6f 6b 3b 0d 09 6a | justOne|Look;..j|
|000018c0| 75 73 74 4f 6e 65 4c 6f | 6f 6b 20 3c 3c 20 22 54 |ustOneLo|ok << "T|
|000018d0| 68 69 73 20 69 73 20 61 | 20 74 65 78 74 20 73 74 |his is a| text st|
|000018e0| 72 69 6e 67 2c 20 77 68 | 69 63 68 20 77 69 6c 6c |ring, wh|ich will|
|000018f0| 20 62 65 20 61 75 74 6f | 6d 61 74 69 63 61 6c 6c | be auto|maticall|
|00001900| 79 20 61 74 74 61 63 68 | 65 64 20 61 73 20 61 6e |y attach|ed as an|
|00001910| 20 6f 6f 66 43 68 61 72 | 22 0d 09 09 3c 3c 20 6e | oofChar|"...<< n|
|00001920| 65 77 20 6f 6f 66 52 65 | 61 6c 28 31 32 2e 33 29 |ew oofRe|al(12.3)|
|00001930| 20 20 3c 3c 20 64 62 44 | 61 74 65 3a 3a 63 75 72 | << dbD|ate::cur|
|00001940| 72 65 6e 74 44 61 74 65 | 28 29 3b 0d 09 63 6f 75 |rentDate|();..cou|
|00001950| 74 20 3c 3c 20 6a 75 73 | 74 4f 6e 65 4c 6f 6f 6b |t << jus|tOneLook|
|00001960| 3b 0d 09 09 09 0d 09 63 | 6f 75 74 20 3c 3c 20 65 |;......c|out << e|
|00001970| 6e 64 6c 20 3c 3c 20 22 | 64 6f 6e 65 22 20 3c 3c |ndl << "|done" <<|
|00001980| 20 65 6e 64 6c 3b 0d 09 | 72 65 74 75 72 6e 20 45 | endl;..|return E|
|00001990| 58 49 54 5f 53 55 43 43 | 45 53 53 3b 0d 7d 20 20 |XIT_SUCC|ESS;.} |
|000019a0| 20 20 20 20 20 0d 00 00 | 00 00 00 00 00 00 00 00 | ...|........|
|000019b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a00| 00 00 01 00 00 00 01 68 | 00 00 00 68 00 00 00 52 |.......h|...h...R|
|00001a10| 01 04 00 04 00 06 00 03 | 00 05 00 05 00 05 00 05 |........|........|
|00001a20| 00 05 00 04 00 05 00 05 | 00 03 00 04 00 05 00 03 |........|........|
|00001a30| 0c 6f 6f 66 74 73 74 33 | 30 2e 63 70 70 33 02 00 |.ooftst3|0.cpp3..|
|00001a40| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00001a50| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00001a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a70| 00 00 b0 1b 76 03 00 00 | 00 00 00 00 01 ba 00 04 |....v...|........|
|00001a80| 00 04 00 05 00 05 00 05 | 00 05 00 05 00 05 00 05 |........|........|
|00001a90| 00 05 00 05 00 05 00 04 | 00 05 00 06 00 06 00 06 |........|........|
|00001aa0| 00 06 00 06 00 06 00 09 | 00 09 00 09 01 04 00 04 |........|........|
|00001ab0| 00 06 00 09 00 07 00 0a | 00 06 00 05 00 05 00 06 |........|........|
|00001ac0| 00 06 00 05 00 06 00 07 | 00 08 01 05 00 05 00 05 |........|........|
|00001ad0| 00 08 01 09 00 06 01 06 | 01 03 00 05 00 08 01 05 |........|........|
|00001ae0| 00 06 01 07 00 08 01 08 | 00 08 06 06 01 07 01 07 |........|........|
|00001af0| 00 06 00 09 00 08 00 05 | 00 07 01 07 02 07 01 04 |........|........|
|00001b00| 00 00 00 10 00 01 00 00 | 01 0e 00 00 01 12 05 6d |........|.......m|
|00001b10| 61 69 6e 00 00 00 00 48 | 00 09 4d 6f 6e 61 63 6f |ain....H|..Monaco|
|00001b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b30| 00 00 00 00 00 00 00 00 | 00 00 00 03 00 04 00 56 |........|.......V|
|00001b40| 00 61 02 6e 02 c0 00 56 | 00 61 02 6e 02 c0 af 68 |.a.n...V|.a.n...h|
|00001b50| 57 3f 00 00 05 49 00 00 | 05 49 00 00 05 0e 01 00 |W?...I..|.I......|
|00001b60| 00 00 00 04 00 01 00 01 | 00 00 01 00 00 00 01 68 |........|.......h|
|00001b70| 00 00 00 68 00 00 00 52 | 01 a3 eb 60 28 66 00 00 |...h...R|...`(f..|
|00001b80| 00 1c 00 52 00 01 4d 50 | 53 52 00 01 00 12 4d 57 |...R..MP|SR....MW|
|00001b90| 42 42 00 00 00 2a 03 ef | ff ff 00 00 00 00 00 00 |BB...*..|........|
|00001ba0| 00 00 03 ed ff ff 00 00 | 00 14 00 00 00 00 03 f0 |........|........|
|00001bb0| ff ff 00 00 00 60 00 00 | 00 00 00 00 00 00 00 00 |.....`..|........|
|00001bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+